package com.hk.model;

import java.util.List;

/**
 * @Author: KangWang
 * Date: 2021/5/18 17:14
 * State：产品类型菜单
 */
public class ProductMenu {

    private int menuId;
    private String menuName;//菜单名称
    private String menuUrl;//菜单路径
    private int parentId;//菜单级别（0：一级菜单）
//  不与数据库对应
    private List<ProductMenu> productMenus; // 所属二级菜单

    public int getMenuId() {
        return menuId;
    }

    public void setMenuId(int menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public List<ProductMenu> getProductMenus() {
        return productMenus;
    }

    public void setProductMenus(List<ProductMenu> productMenus) {
        this.productMenus = productMenus;
    }

    public ProductMenu(int menuId, String menuName, String menuUrl, int parentId) {
        this.menuId = menuId;
        this.menuName = menuName;
        this.menuUrl = menuUrl;
        this.parentId = parentId;
    }

    public ProductMenu() {

    }

    @Override
    public String toString() {
        return "ProductMenu{" +
                "menuId=" + menuId +
                ", menuName='" + menuName + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", parentId=" + parentId +
                ", productMenus=" + productMenus +
                '}';
    }
}
